package org.fast.develop.logicflow.runtime.ws;

import java.io.IOException;

/**
 * @author czh
 * @version V1.0
 * @data Created on 2023-01-29 16:57
 */
public interface IWebSocketLauncher {

    /**
     * 发送消息
     *
     * @param key
     * @param text
     * @return
     * @throws IOException
     */
    void sendMsg(String key, String text) throws IOException;

    /**
     * 广播消息
     *
     * @param text
     * @return
     * @throws IOException
     */
    void broadcastMsg(String text) throws IOException;

    IWsSessionStore getSessionStore();
}
